package com.eric.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CommonMaterialsVO implements Serializable {
    private Integer id;

    @NotBlank(message = "物料名称不能为空")
    private String materialName;

    private String materialSpecifications;

    @NotNull(message = "单价不能为空")
    private double unitPrice;

    @NotBlank(message = "单位名称不能为空")
    private String unitName;

    private String description;
}
